<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<table class="display" id="example1">
    <thead>
    <tr>
        <th>姓名</th>
        <th>部门</th>
        <th>岗位</th>
        <th>职等</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <s:if test="#request.examQuanScores==null || #request.examQuanScores.size==0">
        <tr class="gradeA">
            <td colspan="5">暂无数据</td>
        </tr>
    </s:if>
    <s:else>
        <s:iterator value="#request.examQuanScores" var="emp" status="sta">
            <s:if test="#sta.even">
                <tr class="gradeA">
            </s:if><s:else><tr class="gradeC"></s:else>
            <td>${emp.name}</td>
            <td>${emp.orgName}</td>
            <td>${emp.dutyName}</td>
            <td>${emp.gradeName}</td>
            <s:if test="#emp.score_id==null">
                 <td><a class="button"
                   href="#exam/quandatainput_add.xhtml?dutyId=${emp.dutyId}&empId=${emp.id}"><span
                    style="background:url(${ctx}/images/img/chart_curve_add.png)"
                    class="icon">&nbsp;</span>输入</a>
            </td>
            </s:if>
            <s:else>
                 <td><a class="button"
                   href="#exam/quandatainput_add.xhtml?dutyId=${emp.dutyId}&empId=${emp.id}"><span
                    style="background:url(${ctx}/images/img/chart_curve_add.png)"
                    class="icon">&nbsp;</span>打分${emp.score}</a>
            </s:else>

            </tr>
        </s:iterator>
    </s:else>

    </tbody>
</table>